package duotai;

/**
 * Created by chenkuo on 2018/7/9.
 */

class A3{
    public void fun1(){
        System.out.println("1、A ---->public void fun1()");
    }
    public void fun2(){
        this.fun1();
    }
}

class B3 extends A3{
    //覆写了fun1()方法
    public void fun1(){
        System.out.println("2、B ---->public void fun1()");
    }
    //增加了一个fun3()方法
    public void fun3(){
        System.out.println("3、B ---->public void fun3()");
    }
}

public class DuoDemo03 {
    public static void main(String[] args) {
    }
}

